#! /bin/bash

a=$(java -jar Grades.jar 30 25)
b=$(java -jar Grades.jar 38 41)
c=$(java -jar Grades.jar 46 51)
d=$(java -jar Grades.jar 59 62)
e=$(java -jar Grades.jar 65 87)
f=$(java -jar Grades.jar 85 97)
g=$(java -jar Grades.jar 100 100)

if [$a == "Pass"]; then passed=$((passed+1))
else if [$a == "Pass with distinction"]; then passed=$((passed+1))else failed=$((failed+1))fi

if [$b == "Pass"]; then	passed=$((passed+1))
else if [$b == "Pass with distinction"]; then passed=$((passed+1))else failed=$((failed+1))fi

if [$c == "Pass"]; then passed=$((passed+1))
else if [$c == "Pass with distinction"]; then passed=$((passed+1))else failed=$((failed+1))fi

if [$e == "Pass"]; then passed=$((passed+1))
else if [$d == "Pass with distinction"]; then passed=$((passed+1))else failed=$((failed+1))fi

if [$f == "Pass"]; then	passed=$((passed+1))
else if [$f == "Pass with distinction"]; then passed=$((passed+1))else failed=$((failed+1))fi

if [$g == "Pass"]; then	passed=$((passed+1))
else if [$a == "Pass with distinction"]; then passed=$((passed+1))elsefailed=$((failed+1))fi
	
echo "Passed: $passed"
echo "Failed: $failed"
